import { Column, Entity, Index } from 'typeorm';
import { IBaseEntity } from '../../00_base/IBaseEntity';

@Index('name', ['name'], { unique: true })
@Index('PK__sys_org__3213E83F66FAD2CB', ['id'], { unique: true })
@Entity('sys_org', { schema: 'dbo' })
export class SysOrg extends IBaseEntity {
  @Column('nvarchar', { name: 'name', length: 255 })
  name: string;

  @Column('nvarchar', { name: 'code', length: 255 })
  code: string;

  @Column('int', { name: 'sort', nullable: true })
  sort: number | null;

}